﻿#ifndef PIXMAPITEM_H
#define PIXMAPITEM_H

#include<QGraphicsItem>
#include<QPixmap>
#include<QPainter>
#include<QGraphicsScene>

class pixmapItem : public QGraphicsItem
{
public:
    pixmapItem(const QString& path,QGraphicsScene*scene);
protected:
    QRectF boundingRect()const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
protected:
    QPixmap pixmap;
};

#endif // PIXMAPITEM_H
